﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;

namespace DelonixRegiaHMSys.Core.Services
{
     public class gccdServices
    {
        private readonly IGuestCreditCardDetailsQuery _guestCreditCardDetailsQuery;
        public gccdServices(IGuestCreditCardDetailsQuery guestCreditCardDetailsQuery)
        {
            _guestCreditCardDetailsQuery = guestCreditCardDetailsQuery;
        }

        //public IEnumerable<GuestCreditCardDetails> GetAll()
        //{
        //    return _guestCreditCardDetailsQuery.GetAll();
        //}
        public  void AddCreditCardDetail(GuestCreditCardDetails gccd)
        {
            _guestCreditCardDetailsQuery.AddCreditCardDetail(gccd); 
        }
        public void DeleteCreditCardDetail(string creditCardNum)
        {
            _guestCreditCardDetailsQuery.DeleteCreditCardDetail(creditCardNum);
        }
    }
}
